<table>
    <thead>
        <tr>
	   	    <th><g:message code="productCategory.category" default="Category" /></th>
	   	    <th><g:message code="productCategory.category.discount" default="Discount" /></th>
	   	    <th><g:message code="productCategory.category.productionCycle" default="Production Cycle" /></th>
	   	    <th><g:message code="productCategory.category.transportCycle" default="Transport Cycle" /></th>
	   	    <th><g:message code="productCategory.category.deliveryCycle" default="Delivery Cycle" /></th>
            <th><g:message code="productCategory.category.isAllowSpecialDiscount" default="Allow Special Discount?" /></th>
            <th><g:message code="productCategory.category.isAllowZeroPrice" default="Allow Zero Price?" /></th>
            <th><g:message code="productCategory.category.isActive" default="Active?" /></th>
        </tr>
    </thead>
    <tbody>
    <g:each in="${productCategoryInstanceList}" status="i" var="productCategoryInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td>${fieldValue(bean: productCategoryInstance, field: "category.recordType")},${fieldValue(bean: productCategoryInstance, field: "category")}</td>
            <td>${fieldValue(bean: productCategoryInstance, field: "category.discount")}</td>
            <td>${fieldValue(bean: productCategoryInstance, field: "category.productionCycle")}</td>
            <td>${fieldValue(bean: productCategoryInstance, field: "category.transportCycle")}</td>
            <td>${fieldValue(bean: productCategoryInstance, field: "category.deliveryCycle")}</td>
            <td><g:formatBoolean boolean="${(productCategoryInstance?.category?.isAllowSpecialDiscount==true)?true:false}" /></td>
            <td><g:formatBoolean boolean="${(productCategoryInstance?.category?.isAllowZeroPrice==true)?true:false}" /></td>
            <td><g:formatBoolean boolean="${(productCategoryInstance?.category?.isActive==true)?true:false}" /></td>
        </tr>
    </g:each>
    </tbody>
</table>
